<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="en">

@section('htmlheader')
    @include('layouts.partials.htmlheader')
@show
<body >
<div class="box box-info">

    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal" action="{{url('BaseSet/edit')}}" method="post">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <input type="hidden" name="data_id" value="{{$data[0]->id}}">
        <div class="box-body">
            <div class="form-group"style="width: 98%;">
                <label for="inputEmail3" class="col-sm-2 control-label">菜单栏名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="nav_name" placeholder="" name="nav_name"  value="{{$data[0]->nav_name}}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">父级菜单</label>
                <div class="col-sm-10">
                    <select class="form-control select2" style="width: 60%;" name="pid">
                        <option  value="0">无</option>
                        @foreach($parent as $value)
                            <option  value="{{$value->id}}" @if($value->id == $data[0]->pid)selected="selected"@endif>{{$value->nav_name}}</option>
                        @endforeach
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">菜单类型</label>
                <div class="col-sm-10">
                    <select class="form-control select2" style="width: 60%;" name="nav_type">
                        <option  value="click" @if($data[0]->nav_type=='click')selected="selected"@endif>关键词回复</option>
                        <option value="url"  @if($data[0]->nav_type=='url')selected="selected"@endif>URL链接</option>

                    </select>
                </div>
            </div>

            <div class="form-group" style="width:500px;margin-left: 35px" >
                <label for="inputPassword3" class="col-sm-2 control-label">关键词</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="value" placeholder="" name="value" value="{{$data[0]->value}}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">状态</label>
                <div class="col-sm-10">
                    <select class="form-control select2" style="width: 60%;" name="is_opend">
                        <option  value="1" @if($data[0]->is_opend==1)selected="selected"@endif>开启</option>
                        <option value="0"  @if($data[0]->is_opend==0)selected="selected"@endif>关闭</option>
                    </select>
                </div>
            </div>
            <div class="form-group" style="width:500px;margin-left: 35px">
                <label for="inputEmail3" class="col-sm-2 control-label">排序</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="sort" placeholder="" name="sort" value="{{$data[0]->sort}}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <div class="checkbox">
                        <label>

                        </label>
                    </div>
                </div>
            </div>
        </div>
        <!-- /.box-body -->
        <div class="box-footer">
            <button type="submit" class="btn btn-info pull-left" style="margin-left: 300px">提交</button>
        </div>
        <!-- /.box-footer -->
    </form>
    <script>

    </script>
</div>

@section('scripts')
    @include('layouts.partials.scripts')
@show

</body>
</html>
